package com.sky.mapper;

import com.sky.entity.ShoppingCart;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ShoppingCartMapper {

    /**
     * 根据多个条件查询购物车数据
     * @param shoppingCart
     * @return
     */
    List<ShoppingCart> selectByMany(ShoppingCart shoppingCart);


    /**
     * 插入购物车数据
     * @param shoppingCart
     */
    void insertShoppingCart(ShoppingCart shoppingCart);

    /**
     * 更新购物车数据
     * @param dbShoppingCart
     */
    void updateShoppingCart(ShoppingCart dbShoppingCart);

    /**
     * 删除购物车数据
     * @param shoppingCart
     */
    void deleteShoppingCart(ShoppingCart shoppingCart);
}
